package com.fwj.authorization.staff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fwj.authorization.staff.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 角色用户
 *
 * @author 樊温军
 * @date 2025/3/18 上午10:32
 */
@Repository
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {


    /**
     * 用户角色—分页
     *
     * @param page        分页对象
     * @param sysUserRole 查询条件
     * @return IPage<SysUserRole>
     */
    IPage<SysUserRole> getPage(Page<SysUserRole> page, @Param("map") SysUserRole sysUserRole);
}
